<template>
  <view class="login-wrapper">
    <image class="bg" src=""></image>
    <view
      style="display: flex; align-items: center; justify-content: center"
      class="goback"
    >
    </view>
    <view class="header">
      <view style="position: relative">
        Hello！

        <image
          src="../../static/logoss.png"
          style="
            width: 250rpx;
            height: 58rpx;
            position: absolute;
            left: 0;
            top: -70rpx;
          "
          mode="scaleToFill"
        />
      </view>
      <view class="header-title">欢迎登录，国景返利宝 </view>
    </view>
    <view class="content">
      <uv-checkbox-group v-model="checkboxValue">
        <uv-checkbox
          activeColor="#5be286"
          :customStyle="{ marginBottom: '8px', fontSize: '22rpx' }"
        >
          <template #default>
            我已仔细阅读
            <span @click="gotoPage" style="color: #5be286"
              >《排队返利与参与规则协议》</span
            >
          </template>
        </uv-checkbox>
      </uv-checkbox-group>
      <view @click="handleClick" style="margin-top: 20rpx" class="handle">
        <button
          v-if="showButton"
          style="
            position: absolute;
            width: 100%;
            height: 100rpx;
            left: 0;
            right: 0;
            opacity: 0;
          "
          open-type="getPhoneNumber"
          @getphonenumber="getPhoneNumber"
        ></button>

        <text>手机号一键登录</text>
      </view>
    </view>

    <uv-popup ref="popup">
      <view style="padding: 20rpx">
        <scroll-view style="height: 80vh" :scroll-y="true">
          <uv-parse :content="content"></uv-parse>
        </scroll-view>
      </view>
    </uv-popup>
  </view>
</template>

<script>
import { email } from "@climblee/uv-ui/libs/function/test";

export default {
  data() {
    return {
      userInfo: {},
      code: "",
      showButton: false,
      checkboxValue: false,
      popup: "",
      content: `<div class="WordSection1" style="layout-grid:15.6pt">

<p class="MsoNormal" align="center" style="text-align:center;line-height:22.0pt;
mso-line-height-rule:exactly"><b><span lang="ZH-CN" style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">购卡须知</span></b><b><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;"><o:p></o:p></span></b></p>

<p class="MsoNormal" style="line-height:22.0pt;mso-line-height-rule:exactly"><span lang="ZH-CN" style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;
mso-bidi-font-family:&quot;Microsoft YaHei&quot;">会员资格</span><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;">:<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">1<span lang="ZH-CN">、对会员的入会资格评定权归国景（西京）游泳馆所有</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">2<span lang="ZH-CN">、符合本游泳馆部的各项章程并且办理会员卡后，方可取得国景（西京）游泳馆会员资格</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">3<span lang="ZH-CN">、会员卡是证明会员资格的凭证，仅供本人使用，不得私自转让</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">4<span lang="ZH-CN">、本游泳馆会员须年满</span>8<span lang="ZH-CN">周岁</span>(<span lang="ZH-CN">身高</span>1.2<span lang="ZH-CN">米以上</span>)<span lang="ZH-CN">不满</span>65<span lang="ZH-CN">周岁且身体健康，儿童游泳须有家人陪护。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="line-height:22.0pt;mso-line-height-rule:exactly"><span lang="ZH-CN" style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;
mso-bidi-font-family:&quot;Microsoft YaHei&quot;">一、总纲</span><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;">:<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">1<span lang="ZH-CN">、会员卡自办卡日起</span>3<span lang="ZH-CN">个月之内开卡</span>(<span lang="ZH-CN">特惠卡除外</span>),<span lang="ZH-CN">过期未开卡视为作废。会员卡自开卡日之起有效期一年</span>(<span lang="ZH-CN">特惠卡除外</span>)<span lang="ZH-CN">，过期失效。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">2<span lang="ZH-CN">、会员卡一经售出，概不退换。会员卡如有遗失或被盗，需及时补办，本俱乐部管理处将收取</span>30<span lang="ZH-CN">元的补办卡费，</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">3<span lang="ZH-CN">、年卡类会员必须是本人，并出示会员卡才能进入游泳馆</span>;<span lang="ZH-CN">如果忘记携带，应凭借会员卡号和本人身份证进入俱乐部。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">4<span lang="ZH-CN">、游泳馆的营业时间为</span>:9:00-21:00<span lang="ZH-CN">。每周一、周五 早上为</span>10:00<span lang="ZH-CN">营业。本馆有权根据特殊需要适当调整营业时间并店内公示。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="line-height:22.0pt;mso-line-height-rule:exactly"><span lang="ZH-CN" style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;
mso-bidi-font-family:&quot;Microsoft YaHei&quot;">二、会员权利</span><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;">:<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">1<span lang="ZH-CN">、报停</span>:<span lang="ZH-CN">会员因个人原因不能正常参加游泳，会员可申请报停，每张会员卡享有最多三次报停的权利，报停时间累计最长三个月。报停必须以书面形式提前办理并取得本馆管理处同意方可生效</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">2<span lang="ZH-CN">、女会员如在会员期限内怀孕凭借县级以上医院证明，可给予办理会员卡报停手续，报停时间最长不超过十二个月。报停必须以书面形式提前办理并取得本馆管理处同意方可生效</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">3<span lang="ZH-CN">、为答谢会员长期以来对本游泳馆的支持，会员生日当天凭借有效会员卡可领取游泳票两张</span>;<span style="mso-tab-count:1">&nbsp;&nbsp; </span>:<span lang="ZH-CN">坚类斗员会</span><span style="mso-tab-count:1"> </span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">4<span lang="ZH-CN">、针对本游泳馆的服务，会员有提出批评、投诉及改进建议的权利</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="line-height:22.0pt;mso-line-height-rule:exactly"><span lang="ZH-CN" style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;
mso-bidi-font-family:&quot;Microsoft YaHei&quot;">三、会员义务</span><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;">:<span style="mso-tab-count:2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">1<span lang="ZH-CN">、如实向游泳馆前台提供个人信息资料。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">2<span lang="ZH-CN">、严禁心肺功能疾病、皮肤病、传染病、高血压患者进入本游泳馆，有以上疾病的患者隐瞒病情取得会员资格的，本游泳馆有权终止其会员资格，并保留追究其法律权利。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">3<span lang="ZH-CN">、会员严禁携带</span>1.2<span lang="ZH-CN">米以下儿童进入游泳区域，对于擅自进入游泳区域造成伤害的，本游泳馆概不负责</span>.<span lang="ZH-CN">赫</span>):<span lang="ZH-CN">主备</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">4<span lang="ZH-CN">、严禁在本游泳馆吸烟、进食。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">5<span lang="ZH-CN">、严禁携带宠物进入本游泳馆。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">6<span lang="ZH-CN">、严禁在本游泳馆内大声喧哗，使用污秽语言以及一切违法活动。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">7<span lang="ZH-CN">、本游泳馆不接受</span>65<span lang="ZH-CN">岁以上老人入会，能出具真实有效的健康证明且签订免责申明者除外，但因隐瞒或错报个人年龄、健康等信息，而发生的一切责任都由其本人承担。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="line-height:22.0pt;mso-line-height-rule:exactly"><span lang="ZH-CN" style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;
mso-bidi-font-family:&quot;Microsoft YaHei&quot;">四、免责条款</span><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;"><span style="mso-tab-count:1">&nbsp;&nbsp; </span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">1<span lang="ZH-CN">、遇不可抗力</span>(<span lang="ZH-CN">如战争、自然灾害等</span>)<span lang="ZH-CN">造成本游泳馆营业终止或会员会籍不能继续，致使会员遭受损失，本馆不予承担任何责任</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">2<span lang="ZH-CN">、会员所受损害是因其自身故意或过失造成的，本馆不予承担任何责任</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">3<span lang="ZH-CN">、会员所受损害是本游泳馆工作人员以外的任何第三方故意或过失行为导致的，本馆不予承担任何责任</span>,<span lang="ZH-CN">金员会</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">4<span lang="ZH-CN">、受害方严重违反本馆制定的规章制度所造成的损害，本馆不予承担任何责任</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">5<span lang="ZH-CN">、未交由本游泳馆保管</span>,<span lang="ZH-CN">而由会员或会员随同人员个人保管的贵重物品发生毁损、遗失的，本馆不予承担任何责任</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">6<span lang="ZH-CN">、因会员资料或个人信息发生变动未及时通知本馆，从而造成损失或会员权利受限的，本馆不予承担任何责任</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">7<span lang="ZH-CN">、未听从本游泳馆工作人员指导，擅自跳水、戏水造成自身受伤，及他人受伤的，其本人应承担全部赔偿责任，对此本游泳馆不承担任何责任</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">8<span lang="ZH-CN">、因会员自身行为不当或会员之间的争议产生的人身和财产损失，本游泳馆不承担责任</span>;<span lang="ZH-CN">新圆劲青申本</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">9<span lang="ZH-CN">、会员未及时告知自身患有或隐瞒重大疾病病症或病史发生意外时，对此本游泳馆不承担任何责任</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">10<span lang="ZH-CN">、会员饮酒、吸毒或使用其他违禁药品后发生意外时，对此本游泳馆不承担任何责任。人衣盖后公长</span><o:p></o:p></span></p>

<p class="MsoNormal" style="line-height:22.0pt;mso-line-height-rule:exactly"><span lang="ZH-CN" style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;
mso-bidi-font-family:&quot;Microsoft YaHei&quot;">五、安全提示</span><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;"><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">1<span lang="ZH-CN">、会员在游泳前</span>,<span lang="ZH-CN">先冲淋再做必要的热身练习再下水</span>,<span lang="ZH-CN">本游泳馆禁止跳水</span>,<span lang="ZH-CN">以免受伤。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">2<span lang="ZH-CN">、过度游泳及违规游泳均有受伤的可能，所以您在运动前应对自己的身体情况进行判断，并保持运动强度和时间的适当。</span><o:p></o:p></span></p>

<p class="MsoNormal" style="line-height:22.0pt;mso-line-height-rule:exactly"><span lang="ZH-CN" style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;
mso-bidi-font-family:&quot;Microsoft YaHei&quot;">六、会员承诺</span><span style="font-size:12.0pt;font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:
&quot;Microsoft YaHei&quot;"><o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">1<span lang="ZH-CN">、本人保证所提供的入会资料及个人信息真实有效</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">2<span lang="ZH-CN">、本人身体健康且没有本协议约定的不适合进行运动的疾病</span>;<o:p></o:p></span></p>

<p class="MsoNormal" style="text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:22.0pt;mso-line-height-rule:exactly"><span style="font-size:12.0pt;
font-family:&quot;Microsoft YaHei&quot;,sans-serif;mso-bidi-font-family:&quot;Microsoft YaHei&quot;">3<span lang="ZH-CN">、本人已阅读、理解并同意上述条文。</span><o:p></o:p></span></p>

</div>`,
    };
  },
  watch: {
    checkboxValue(val) {
      if (val.length > 0) {
        this.showButton = true;
      } else {
        this.showButton = false;
      }
    },
  },
  methods: {
    handleClick() {
      if (!this.showButton) {
        uni.showToast({
          icon: "none",
          title: "请选勾选协议",
        });
      } 
    },
    async getPhoneNumber(e) {
      this.code = e.detail.code;
      uni.request({
              url: "https://www.gjlfb.cn/mallApi/" + "loginByWx",
              data: {
                code: uni.getStorageSync('loginCode'),
                share: "",
              },
              method: "POST",
              header: {
                "content-type": "application/json",
              },
              success: async (results) => {
                
                uni.showLoading({
                  title: '加载中',
                
                })
                if (results.statusCode == 200) {
                  if (!results.data.fail) {
                   
                    let result = results.data.data;

                    const expiresTimeStamp =
                      (result.expiresIn * 1000) / 2 + new Date().getTime();
                    // 缓存token的过期时间
                    uni.setStorageSync("expiresTimeStamp", expiresTimeStamp);

                    uni.setStorageSync("Token", result.accessToken); // 把token存入缓存，请求接口数据时要用
                    uni.showToast({
                      title: "登录成功",
                      icon: "none",
                    });
                   
                   
                    uni.setStorageSync("openId", result.openId);
                    let userInfo  = JSON.parse(uni.getStorageSync('userInfo'))
                    
                    // 一定是getPhoneNumber里面的code

                    let res = await uni.request({
                      url: "https://www.gjlfb.cn/mallApi/" + "register",
                      method: "POST",
                      header: {
                        'content-type': 'application/json',
                        'X-Auth-Token': result.openId,
              },
                      data: {avatar: userInfo.avatarUrl,
                        nickname: userInfo.nickName,
                        gender: userInfo.gender,
                        phoneCode: this.code,
                      },
                    });
                    
                    uni.hideLoading();
                   if(!res.data.fail){
                     uni.setStorageSync('loginOk',true)
                     uni.switchTab({
                      url:'/pages/my'
                     })
                   }else{
                    uni.setStorageSync('loginOk',false)
                    uni.switchTab({
                      url:'/pages/my'
                     })
                   }
                  
                  } else {
                    uni.showToast({
                      title: res.data.msg,
                      icon: "none",
                    });
                  }
                } else {
                  uni.hideLoading();
                  uni.showToast({
                    title: "认证失败",
                    icon: "none",
                  });
                }

                uni.hideLoading();
              },
              fail: () => {
                uni.hideLoading();
              },
            });

           
    },
    gotoPage() {
      this.$refs.popup.open("bottom");
    },
    toPage(val) {
      uni.navigateTo({
        url: val,
      });
    },
  },
};
</script>

<style>
.login-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  object-fit: cover;
}
.goback {
  width: 90%;
  display: flex;
  padding-top: 150rpx;
  padding-bottom: 80rpx;
  justify-content: flex-start;
  z-index: 11;
}
.content {
  width: 85%;
  margin-top: 40rpx;
  margin-bottom: 20%;
  z-index: 11;
  text-align: center;
  font-size: 30rpx;
  color: rgba(0, 0, 0, 1);
}
.header {
  width: 85%;
  margin-top: 60rpx;
  font-size: 45rpx;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  z-index: 11;
}
.header-title {
  font-size: 30rpx;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 20rpx;
  font-weight: bold;
}

.handle {
  position: relative;
  background-color: #5be286;
  border-radius: 40rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 35rpx;
  padding: 20rpx 30rpx;
  margin-bottom: 40rpx;
}
</style>